package com.servingcloud.servera.api.service.fallback;

import org.springframework.stereotype.Component;

import com.servingcloud.common.model.RestPage;
import com.servingcloud.common.model.RestResult;
import com.servingcloud.servera.api.models.request.UserInfoModifyReq;
import com.servingcloud.servera.api.models.request.UserInfoQueryReq;
import com.servingcloud.servera.api.models.request.UserInfoSaveReq;
import com.servingcloud.servera.api.models.response.UserInfoRes;
import com.servingcloud.servera.api.service.UserInfoService;

@Component
public class UserInfoFallback implements UserInfoService{

	@Override
	public RestResult<RestPage<UserInfoRes>> findUserInfoPage(UserInfoQueryReq param) {
		RestResult<RestPage<UserInfoRes>> ret = new RestResult<RestPage<UserInfoRes>>();
		ret.setSuccess(false);
		ret.setErrorCode("-1");
		ret.setErrorMsg("servera服务器正忙，请稍后再试...");
		return ret;
	}

	@Override
	public RestResult<Long> saveUserInfo(UserInfoSaveReq param) {
		RestResult<Long> ret = new RestResult<Long>();
		ret.setSuccess(false);
		ret.setErrorCode("-1");
		ret.setErrorMsg("servera服务器正忙，请稍后再试...");
		return ret;
	}

	@Override
	public RestResult<Object> modifyUserInfo(UserInfoModifyReq param) {
		RestResult<Object> ret = new RestResult<Object>();
		ret.setSuccess(false);
		ret.setErrorCode("-1");
		ret.setErrorMsg("servera服务器正忙，请稍后再试...");
		return ret;
	}

	@Override
	public RestResult<Object> deleteUserInfo(UserInfoModifyReq param) {
		RestResult<Object> ret = new RestResult<Object>();
		ret.setErrorCode("-1");
		ret.setErrorMsg("servera服务器正忙，请稍后再试...");
		return ret;
	}
   
}